package com.zhkc.iess.system.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NonNull;

import java.io.Serial;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Schema(description = "SysUserAddDTO")
public class SysUserResetPwdDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = -4437839329952458054L;

    @Schema(description = "老密码")
    private String oldPwd;

    @Schema(description = "新密码")
    @Pattern(regexp = "^(?=.[a-z])(?=.[A-Z])(?=.\\d)(?=.[@ @@!%?&])[A-Za-z\\d@ @@!%?&]{8,}")
    @NotBlank
    private String newPwd;

}
